<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <include file='__VIEW__/Common/header' />
	</head>
	<body>
		<form action="" method="post">
			<div class="alert alert-success">编辑货品</div>
			<foreach from="$attrsData" key="$k" value="$v">
				<div class="form-group">
					<label for="exampleInputEmail1">{$v.taname}</label>
					<select name="combine[]" class="form-control">
						<option value="">请选择</option>
						<foreach from="$goodsAttrs" key="$gak" value="$gav">
							<if value="$v['taid']==$gav['vshop_typeattr_taid']">
								<option value="{$gav.gaid}" <if value="in_array($gav['gaid'],$goodsList['combine'])">selected="selected"</if>>{$gav.gavalue}</option>
							</if>
						</foreach>
					</select>
				</div>
			</foreach>
			
			<div class="form-group">
				<label for="exampleInputEmail5">库存</label>
				<input name="glinventory" value="{$goodsList.glinventory}" id="exampleInputEmail5" class="form-control" type="text" required="" />
			</div>
			<div class="form-group">
				<label for="exampleInputEmail6">货号</label>
				<input name="glnumber" value="{$goodsList.glnumber}" id="exampleInputEmail6" class="form-control" type="text" required="" />
			</div>
			<input type="hidden" name="glid" value="{$goodsList.glid}" />
			<button class="btn btn-primary btn-block" type="submit">修改货品</button>
		</form>
	</body>
</html>
